<%@ page contentType="text/html; charset=gb2312" language="java"%>
<%@ page import="com.ionglobal.upload.*" %>
<%
String name="";
boolean display=false;
if(request.getParameter("name")!=null)
	name=request.getParameter("name");
if(name==null || name.length()==0) {
	if(session.getAttribute("upload")!=null) {
		name=(String)session.getAttribute("upload");
//		System.out.println("upload="+name);
		if(session.getAttribute(name)==null) {
			session.removeAttribute("upload");
			//name="";
		} else {
			display=true;			
		}
	}
} else
	display=true;
if(display) {
	FileItemReport ReportItem=FileItemFactory.getFileItemReport(session,name);
	if(ReportItem!=null){
%>	
<script language="javascript">
		window.parent.showProgressDetail("<%=ReportItem.getFileName()%>",<%=ReportItem.getStartTime()%>,<%=ReportItem.getCurrentTime()%>,<%=ReportItem.getUpsize()%>,<%=ReportItem.getTotalsize()%>);
</script>		
<%
	}
}
//System.out.println("name="+name);
%>
<meta http-equiv="refresh" content="1;URL=?name=<%=name%>">

